<link rel="stylesheet" href="__PUBLIC__/css/backend/index.css">
<link rel="stylesheet" type="text/css" href="__PUBLIC__/js/plugin/uploadify/uploadify.css" />
<load href="__PUBLIC__/js/plugin/ueditor/ueditor.config.js" />
<load href="__PUBLIC__/js/plugin/ueditor/ueditor.all.min.js" />
<load href="__PUBLIC__/js/plugin/ueditor/lang/zh-cn/zh-cn.js" />
<div class='backend_header'>
	<div class='backend_header_in'>
		<img src="__PUBLIC__/images/logo-backend.png" alt="" class='backend_logo'>
		<ul>
			<li>密码修改</li>
			<li>|&nbsp;&nbsp;<{$Think.session.admin.name}></li>
			<li class='admin_login_out'>|&nbsp;&nbsp;<a>退出</a></li>
		</ul>

	</div>
</div>

<div class='backend_body'>
	<div class='left_manu'>
		<ul class='left_ul'>
			<li pointer-div='usermanage' class='left_li_active'><span class='glyphicon glyphicon-user btn-lg'></span>用户管理</li>
			<li pointer-div='cookbook'><span class='glyphicon glyphicon-list-alt  btn-lg'></span>美食菜谱</li>
			<li pointer-div='food_manage' ><img src="" alt=""><span class='glyphicon glyphicon-th  btn-lg'></span>商品管理</li>
			<li pointer-div='message_board' style='display:none'><span class='glyphicon glyphicon-list-alt  btn-lg'></span>留言管理(暂留)</li>
			<li pointer-div='join_us' ><span class='glyphicon glyphicon-tags  btn-lg'></span>合作加盟管理</li>
			<li pointer-div='about_us'><span class='glyphicon glyphicon-link  btn-lg'></span>关于我们管理</li>
		</ul>
	</div>
	<div class='right_content'>
		<div class='main_card usermanage main_card_active'>
			<div class='main_card_title'>
				<span class='glyphicon glyphicon-user btn-lg'></span>
				<span>用户管理</span>
			</div>
			<div class='main_card_content'>
				<ul class='main_card_content_ul clear'>
					<li target-div=1 class='action-target-li'>普通用户管理</li>
					<li target-div=2>管理员管理</li>
					<li target-div=3>添加管理员</li>
				</ul>
				<div class='target-div'>
					<div class='target-son target-div-1 target-div-active'>
						<div class='user_multi_operate'>
							<span class='user_multi_delete'>删除</span>
							<!-- <span class='user_multi_forbidden'>禁用</span> -->
							<!-- <span class='user_multi_recover'>恢复</span> -->
						</div>
						<div class='user_replace_div'>
						</div>
					</div>
					<div class='target-son target-div-2'>
						<div class='admin_replace_div'>
						</div>
					</div>
					<div class='target-son target-div-3'>
						<div class='admin_register_div'></div>
					</div>
					<div class='target-son target-div-4'>
						卡槽一4
					</div>										
				</div>
			</div>
		</div>
		<div class='main_card cookbook '>
			<div class='main_card_title'>
				<span class='glyphicon glyphicon-list-alt  btn-lg'></span>
				<span>美食菜谱</span>
			</div>
			<div class='main_card_content'>
				<ul class='main_card_content_ul clear'>
					<li target-div=1 class='action-target-li'>菜谱列表</li>
					<li target-div=2 >新增菜谱</li>
					<li target-div=3 style='display:none'>编辑菜谱</li>
					<!-- <li target-div=4>卡槽一4</li> -->
				</ul>
				<div class='target-div'>
					<div class='target-son target-div-1 target-div-active'>
						<div class='cookbook_multi_operate'>
							<span class='cookbook_multi_delete'>删除</span>
							<span class='cookbook_multi_forbidden'>禁用</span>
							<span class='cookbook_multi_recover'>恢复</span>
						</div>
						<div class='cookbook_replace_div'>
							<form name='cookbook_mutil_operate' action="">
								<table class="table table-hover cookbook_list">
		  							<tr class="active">
		  								<th class='multi_th'><input type="checkbox" name='cookbook_all'></th>
		  								<th class='num_th'>编号</th>
		  								<th>菜谱名称</th>
		  								<th class='add_time_th'>添加时间</th>
		  								<th class='pv_th'>点击率</th>
		  								<th>操作</th>
		  							</tr>
									<foreach name='cookbook_data' item='each_cookbook'>
		  							<tr data-id=<{$each_cookbook.cookbook_id}>>
		  								<td><input type="checkbox" name='cookbook_id[]' value="<{$each_cookbook.cookbook_id}>"></td>
		  								<td><{$each_cookbook.cookbook_id}></td>
		  								<td><{$each_cookbook.cookbook_name}></td>
		  								<td><{$each_cookbook.cookbook_add_time|date='Y-m-d',###}></td>
		  								<td><{$each_cookbook.cookbook_pv}></td>
		  								<td class='cookbook_operate'>							
		  									<span class='cookbook_delete'>删除</span>
		  									<if condition="$each_cookbook.cookbook_status == 'Y'">
												<span class='cookbook_forbidden'>禁用</span>
											<else />
												<span class='cookbook_forbidden_on'>恢复</span>
											</if>
											<span class='cookbook_edit'>编辑</span>
										</td>
		  							</tr>
									</foreach>
								</table>
							</form>
							<div class='cookbook_page_show page_show'><{$cookbook_page}></div>							
						</div>
						
						
					</div>
					<div class='target-son target-div-2 '>
						<div class='cookbook_upload_div'>
							
							<form class="form-horizontal" role="form" name='cookbook_form'>
							  <div class="form-group">
							    <label for="cookbook_img" class="col-sm-2 control-label">菜谱例图</label>
							    <div class="col-sm-3">
							      <input type="file" name="cookfood_img" id="cookfood_img" />
							      <input type="hidden" name='cookbook_photo'/>
							    </div>
							    <img name='show_cookbook_img' alt="" >
							    <label class='click_show_cbpic' class="col-sm-1 control-label">预览图片</label>
							  </div>
							  <div class="form-group">
							    <label for="cookbook_name" class="col-sm-2 control-label">菜谱名称</label>
							    <div class="col-sm-3">
							      <input type="text" class="form-control" name='cookbook_name' id="cookbook_name" placeholder="菜谱名称">
							    </div>
							  </div>

							  <div class="form-group">
							    <label for="cookbook_material" class="col-sm-2 control-label">菜谱原料</label>
							    <div class="col-sm-5">
							      <input type="text" class="form-control" name='cookbook_material' id="cookbook_material" placeholder="原料">
							    </div>
							  </div>
							  <div class="form-group">
							    <label for="cookbook_description" class="col-sm-2 control-label">菜谱描述</label>
							    <div class="col-sm-5">
							      <input type="text" class="form-control" name='cookbook_description' id="cookbook_description" placeholder="描述">
							    </div>
							  </div>
							  <div class="form-group">
							    <label for="cookbook_description" class="col-sm-2 control-label">菜谱内容</label>
							    <div class="col-sm-5">
							     <script id="editor" type="text/plain" style='width:800px;height:300px;'></script>
							    </div>
							  </div>
							   
							  <div class="form-group">
							    <div class="col-sm-offset-2 col-sm-10">
							      <button type="button" class="btn btn-primary cookbook_button">确认</button>
							    </div>
							  </div>
							</form>
						</div>
						
					</div>
					<div class='target-son target-div-3'>
						<div class='cookbook_eidt_div'>
							
						</div>
					</div>									
				</div>
			</div>
		</div>

		<div class='main_card food_manage '>
			<div class='main_card_title'>
				<span class='glyphicon glyphicon-th  btn-lg'></span>
				<span>商品管理</span>
			</div>
			<div class='main_card_content'>
				<ul class='main_card_content_ul clear'>
					<li target-div=1 class='action-target-li'>管理商品</li>
					<li target-div=2 >添加商品</li>
					<li target-div=3>编辑商品</li>
				</ul>
				<div class='target-div'>
					<div class='target-son target-div-1 target-div-active'>
						
						<div class='food_replace_div'>
													
						</div>
					</div>
					<div class='target-son target-div-2 '>
						<div class='food_add_div'>
							

						</div>
					</div>
					<div class='target-son target-div-3'>
						<div class='food_edit_div'>
							请在管理页面选择好您要编辑的商品，点击操作栏的编辑即可进行编辑！
						</div>
						
					</div>										
				</div>
			</div>
		</div>

		<div class='main_card message_board '>
			<div class='main_card_title'>
				<img src="" alt="">
				<span>留言管理</span>
			</div>
			<div class='main_card_content'>
				<ul class='main_card_content_ul clear'>
					<li target-div=1 class='action-target-li'>卡槽一1</li>
					<li target-div=2>卡槽一2</li>
					<li target-div=3>卡槽一3</li>
					<li target-div=4>卡槽一4</li>
				</ul>
				<div class='target-div'>
					<div class='target-son target-div-1 target-div-active'>
						卡槽一1
					</div>
					<div class='target-son target-div-2'>
						卡槽一2
					</div>
					<div class='target-son target-div-3'>
						卡槽一3
					</div>
					<div class='target-son target-div-4'>
						卡槽一4
					</div>										
				</div>
			</div>
		</div>

		<div class='main_card join_us '>
			<div class='main_card_title'>
				<span class='glyphicon glyphicon-tags  btn-lg'></span>
				<span>合作加盟管理</span>
			</div>
			<div class='main_card_content'>
				<ul class='main_card_content_ul clear'>
					<li target-div=1 class='action-target-li'>加盟管理</li>
					<li target-div=2 >新增加盟</li>
					<li target-div=3 >编辑加盟</li>
				</ul>
				<div class='target-div'>
					<div class='target-son target-div-1 target-div-active'>
						<div class='join_list clear'>

						</div>
					</div>
					<div class='target-son target-div-2 '>
						<div class='join_add_div'>
							

						</div>
					</div>
					<div class='target-son target-div-3'>
						<div class='join_edit_div'>
							请在加盟管理中选择你要编辑的对象....
						</div>
					</div>									
				</div>
			</div>
		</div>
		<div class='main_card about_us '>
			<div class='main_card_title'>
				<span class='glyphicon glyphicon-link  btn-lg'></span>
				<span>关于我们管理</span>
			</div>
			<div class='main_card_content'>
				<div class='target-div'>
					<div class='target-son target-div-1 target-div-active' >
						 <textarea id="abouts_us_editor"  style='width:800px;height:300px;'><{$about_us_data.about_content}></textarea>
						 <button class='abouts_us_save_button'>保存</button>
					</div>
									
				</div>
			</div>
		</div>

	</div>
</div>

<script>
	var backend_var = {
		upload_url:'APP_UPLOAD',
		uploadify_url :'__PUBLIC__/js/plugin/uploadify/uploadify.swf',
		uploadify_buttonImg:'__PUBLIC__/js/plugin/uploadify/browse-btn.png',
		ajaxUploadCookFoodImgUrl:'__MODULE__/Index/ajaxUploadCookFoodImg',
		ajaxCookBookRegisterUrl:'__MODULE__/Index/ajaxCookBookRegister',
		adminLoginOutUrl:'__CONTROLLER__/adminLoginOut',
		login_to_url:'__CONTROLLER__/index'	,
		ajaxGetCookBookPageDataUrl:'__CONTROLLER__/ajaxGetCookBookPageData',
		ajaxDelCookbookUrl:'__CONTROLLER__/ajaxDelCookbook',
		ajaxForbiddenCookbookUrl:'__CONTROLLER__/ajaxForbiddenCookbook',
		ajaxRecoverCookbookUrl:'__CONTROLLER__/ajaxRecoverCookbook',
		ajaxGetCookbookEditPageUrl:'__CONTROLLER__/ajaxGetCookbookEditPage',
		ajaxSaveCookcookEditUrl:'__CONTROLLER__/ajaxSaveCookcookEdit',
		ajaxUpdateAboutUsDataUrl:'__CONTROLLER__/ajaxUpdateAboutUsData',

		ajaxAddJoinFormUrl:'__MODULE__/Join/ajaxAddJoinForm',
		ajaxLoadJoinTypeUrl:'__MODULE__/Join/ajaxLoadJoinType',
		ajaxAddJoin:'__MODULE__/Join/ajaxAddJoin',
		ajaxGetJoinListUrl:'__MODULE__/Join/ajaxGetJoinList',
		ajaxGetJoinEditPageUrl:'__MODULE__/Join/ajaxGetJoinEditPage',
		ajaxUpdateJoinUrl:'__MODULE__/Join/ajaxUpdateJoin',

		ajaxGetAddFoodPageUrl:'__MODULE__/Food/ajaxGetAddFoodPage',
		ajaxAddFoodUrl:'__MODULE__/Food/ajaxAddFood',
		ajaxLoadFoodListPageUrl:'__MODULE__/Food/ajaxLoadFoodListPage',
		ajaxFoodDeleteUrl:'__MODULE__/Food/ajaxFoodDelete',
		ajaxFoodForbiddenUrl:'__MODULE__/Food/ajaxFoodForbidden',
		ajaxFoodRecoverUrl:'__MODULE__/Food/ajaxFoodRecover',
		ajaxGetFoodEditPageUrl:'__MODULE__/Food/ajaxGetFoodEditPage',
		ajaxSaveFoodEditUrl:'__MODULE__/Food/ajaxSaveFoodEdit',
		ajaxFoodRecOrUnRecUrl:'__MODULE__/Food/ajaxFoodRecOrUnRec',

		ajaxLoadUserListUrl:'__MODULE__/Index/ajaxLoadUserList',
		ajaxUserDeleteUrl:'__MODULE__/Index/ajaxUserDelete',
		ajaxLoadAdminRegisterUrl:'__MODULE__/Index/ajaxLoadAdminRegister',
		ajaxCheckNameUniqueUrl:'__MODULE__/Index/ajaxCheckNameUnique',
		ajaxCheckEmailUniqueUrl:'__MODULE__/Index/ajaxCheckEmailUnique',
		registerAdminUrl:'__MODULE__/Index/registerAdmin'
	}

</script>